package com.moon.controller;

import com.moon.anno.Lmt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import com.moon.utils.BaseController;
import com.moon.entity.China;
import com.moon.service.inte.ChinaService;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/moon/China")
public class ChinaController extends BaseController {
    @Autowired
    private ChinaService chinaService;

    @Lmt(2)
    @RequestMapping("/selectRoots")
    @ResponseBody
    public List<China> selectRoots() {
        return chinaService.selectRoots();
    }
}